﻿#ifndef MEMBER_H
#define MEMBER_H

#include <QString>

class AbstractChatRoom;

class Member
{
public:
    explicit Member(int id, int level = 0);

    void receiveImage(int id, QString imageName);

    virtual void sendImage(int id, QString imageName) = 0;

    void receiveText(int id, QString textInfo);

    virtual void sendText(int id, QString textInfo) = 0 ;

    void setChartRoom(AbstractChatRoom* chartRoom);

    int id();

    int level();

protected:
    int m_level;
    AbstractChatRoom* m_chartRoom;

private:
    int m_id;
};

#endif // MEMBER_H
